<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:85:"D:\wwwroot\fangcms\fangcms_city_add\public/../application/home\view\loupan\index.html";i:1493779059;s:86:"D:\wwwroot\fangcms\fangcms_city_add\public/../application/home\view\public\layout.html";i:1493431594;s:86:"D:\wwwroot\fangcms\fangcms_city_add\public/../application/home\view\public\footer.html";i:1493803247;}*/ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<!-- manifest="cache.manifest" -->
<head>
    <meta charset="utf-8" />
    <title><?php echo $seo['title']; ?></title>
    <meta name="keywords" content="<?php echo $seo['keys']; ?>" />
    <meta name="description" content="<?php echo $seo['desc']; ?>" />
    <link type="text/css" rel="stylesheet"  href="__CSS__/format_dom.css"/>
    <link type="text/css" rel="stylesheet"  href="__CSS__/main.css"/>
    <!--[if lte IE 8]>
    <script src="__JS__/ie/html5shiv.js"></script>
    <![endif]-->
    <!--[if IE 6]>
    <script type="text/javascript" src="__JS__/DD_belatedPNG.js"></script>
    <script type="text/javascript">DD_belatedPNG.fix("*")</script>
    <![endif]-->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
</head>
<body>
<div>
    <div class="top_line">
        <div class="main">
            <ul>
                <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 1): if(!(empty($vo['url']) || (($vo['url'] instanceof \think\Collection || $vo['url'] instanceof \think\Paginator ) && $vo['url']->isEmpty()))): $url = $vo['url']; else: if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; endif; ?>
                <li><a href="<?php echo $url; ?>" title="<?php echo $vo['title']; ?>" target="<?php echo $vo['open_type']; ?>" <?php if($vo['model'] == $controller): ?>class="on"<?php endif; ?>><?php echo $vo['title']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <li><a href="<?php echo url('Agency/index'); ?>">经纪人</a></li>
            </ul>
            <?php if(empty($userInfo) || (($userInfo instanceof \think\Collection || $userInfo instanceof \think\Paginator ) && $userInfo->isEmpty())): ?>
            <span><a href="<?php echo url('user.login/index'); ?>" >登录</a></span>
            <span><a href="<?php echo url('user.login/reg'); ?>" >注册</a></span>
            <?php else: ?>
            <div style="float:right;color:#fff;"><em><?php echo $userInfo['nickname']; ?></em>,欢迎您的到来 <a href="<?php echo url('user.index/index'); ?>">会员中心</a> | <a href="<?php echo url('user.login/logout'); ?>">退出</a></div>
            <?php endif; ?>
        </div>
    </div>
    <div class="top_nav">
        <div class="top">
            <span class="logo"><img src="<?php echo $site['pcLogo']; ?>" width="80" height="64"></span>
            <div class="city city-box"><span class="city_span"></span><?php echo $cityInfo['name']; ?></div>
            <div class="city_box" id="CPM" style="display:none;">
                <div class="cities-con">
                    <p class="tit">选择城市 <a href="<?php echo url('Index/index@www'); ?>" class="gd_btn">更多城市</a></p>
                    <ul class="cities-opts clearfix">
                        <?php if(is_array($city) || $city instanceof \think\Collection || $city instanceof \think\Paginator): $i = 0; $__LIST__ = $city;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <li class="clearfix">
                            <em class="icons"><?php echo $key; ?></em>
                            <p>
                                <?php if(is_array($vo) || $vo instanceof \think\Collection || $vo instanceof \think\Paginator): $i = 0; $__LIST__ = $vo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
                                <a <?php if($val['is_hot'] == 1): ?>class="highlight"<?php endif; ?> href="<?php echo url('Index/index@'.$val['domain']); ?>"><?php echo $val['name']; ?></a>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </p>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                    <i></i>
                </div>
                <a href="javascript:;" class="close_btn">×</a>
            </div>
            <div class="nav t_mar">
                <ul>
                    <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 1): if(!(empty($vo['url']) || (($vo['url'] instanceof \think\Collection || $vo['url'] instanceof \think\Paginator ) && $vo['url']->isEmpty()))): $url = $vo['url']; else: if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; endif; ?>
                    <li><a href="<?php echo $url; ?>" title="<?php echo $vo['title']; ?>" target="<?php echo $vo['open_type']; ?>" <?php if($vo['model'] == $controller): ?>class="on"<?php endif; ?>><?php echo $vo['title']; ?></a></li>
                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
    
    <div class="h_l_s overflow_h">
        <form action="<?php echo url('Loupan/index'); ?>" method="get" id="search-form">
            <div class="h_l_s_box">
<span class="h_l_input">
<input name="keyword" type="text" class="h_l_i" id="keyword" placeholder="请输入楼盘名称">
<a href="javascript:;" class="but03" id="search-btn">搜索</a>
</span>
                <a href="<?php echo url('Map/index'); ?>" class="but04">地图找房</a>
            </div>
        </form>
    </div>
    
</div>

<div class="main">
    <div class="position"><p><span>更新时间：<?php echo date("Y年m月d日"); ?></span>您当前的位置：<a href="<?php echo url('Index/index'); ?>"><?php echo $site['title']; ?></a> > <a href="<?php echo url('Loupan/index'); ?>">新房</a> </p></div>
    <div class="screen">
        <div class="tab03 overflow_h">
            <ul class="idTabs">
                <li><a href="<?php echo url('Loupan/index'); ?>" class="selected">按楼盘筛选</a></li>
                <li><a href="<?php echo url('Loupan/huxing'); ?>">按户型筛选</a></li>
            </ul>
        </div>
        <div class="screen_box" id="h_tab01">
            <div class="screen_box01 overflow_h">
                <span>区域：</span>
                <ul>
                    <li><a href="<?php echo getUrl('Loupan/index','area',$param,0); ?>" <?php if(empty($search['area']) || (($search['area'] instanceof \think\Collection || $search['area'] instanceof \think\Paginator ) && $search['area']->isEmpty())): ?>class="on"<?php endif; ?>>不限</a></li>
                    <?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a title="<?php echo $vo['name']; ?>" <?php if($vo['id'] == $search['area']): ?>class="on"<?php endif; ?> href="<?php echo getUrl('Loupan/index','area',$param,$vo['id']); ?>"><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="screen_box01 overflow_h">
                <span>户型：</span>
                <ul>
                    <li><a href="<?php echo getUrl('Loupan/index','room',$param,0); ?>" <?php if(empty($search['room']) || (($search['room'] instanceof \think\Collection || $search['room'] instanceof \think\Paginator ) && $search['room']->isEmpty())): ?>class="on"<?php endif; ?>>不限</a></li>
                    <?php if(is_array($room) || $room instanceof \think\Collection || $room instanceof \think\Paginator): $i = 0; $__LIST__ = $room;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo getUrl('Loupan/index','room',$param,$vo['id']); ?>" <?php if($vo['id'] == $search['room']): ?>class="on" <?php endif; ?>><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="screen_box01 overflow_h">
                <span>价格：</span>
                <ul>
                    <li><a href="<?php echo getUrl('Loupan/index','price',$param,0); ?>" <?php if(empty($search['price']) || (($search['price'] instanceof \think\Collection || $search['price'] instanceof \think\Paginator ) && $search['price']->isEmpty())): ?>class="on"<?php endif; ?>>不限</a></li>
                    <?php if(is_array($price) || $price instanceof \think\Collection || $price instanceof \think\Paginator): $i = 0; $__LIST__ = $price;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo getUrl('Loupan/index','price',$param,$key); ?>" <?php if($key == $search['price']): ?>class="on"<?php endif; ?>><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="screen_box01 overflow_h">
                <span>特色：</span>
                <ul>
                    <li><a href="<?php echo getUrl('Loupan/index','tags',$param,0); ?>" <?php if(empty($search['tags']) || (($search['tags'] instanceof \think\Collection || $search['tags'] instanceof \think\Paginator ) && $search['tags']->isEmpty())): ?>class="on"<?php endif; ?>>不限</a></li>
                    <?php if(is_array($tags) || $tags instanceof \think\Collection || $tags instanceof \think\Paginator): $i = 0; $__LIST__ = $tags;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo getUrl('Loupan/index','tags',$param,$vo['id']); ?>" <?php if($vo['id'] == $search['tags']): ?>class="on" <?php endif; ?>><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="screen_box01 overflow_h">
                <span>类型：</span>
                <ul>
                    <li><a <?php if(empty($search['type']) || (($search['type'] instanceof \think\Collection || $search['type'] instanceof \think\Paginator ) && $search['type']->isEmpty())): ?> class="on"<?php endif; ?> href="<?php echo getUrl('Loupan/index','type',$param,0); ?>">不限</a></li>
                    <?php if(is_array($type) || $type instanceof \think\Collection || $type instanceof \think\Paginator): $i = 0; $__LIST__ = $type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a <?php if($vo['id'] == $search['type']): ?> class="on" <?php endif; ?> href="<?php echo getUrl('Loupan/index','type',$param,$vo['id']); ?>"><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="screen_box01 overflow_h">
                <span>装修：</span>
                <ul>
                    <li><a <?php if(empty($search['renovation']) || (($search['renovation'] instanceof \think\Collection || $search['renovation'] instanceof \think\Paginator ) && $search['renovation']->isEmpty())): ?> class="on"<?php endif; ?> href="<?php echo getUrl('Loupan/index','renovation',$param,0); ?>">不限</a></li>
                    <?php if(is_array($renovation) || $renovation instanceof \think\Collection || $renovation instanceof \think\Paginator): $i = 0; $__LIST__ = $renovation;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a <?php if($vo['id'] == $search['renovation']): ?> class="on" <?php endif; ?> href="<?php echo getUrl('Loupan/index','renovation',$param,$vo['id']); ?>"><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

        </div>
    </div>

    <div class="overflow_h">
        <div class="house_l">
            <div class="house_l_t">
                <div class="h_l_t_n1">
                    <div class="tab03 overflow_h">
                        <ul class="idTabs">
                            <li><a href="<?php echo url('Loupan/index'); ?>" <?php if($search['group'] == 0): ?>class="selected"<?php endif; ?>>全部楼盘(<?php echo $lists->total(); ?>)</a></li>
                            <li><a href="<?php echo getUrl('Loupan/index','group',$param,$group); ?>" <?php if($search['group'] == 1): ?>class="selected"<?php endif; ?>>团购优惠</a></li>
                        </ul>
                    </div>
                </div>
                <div class="h_l_t_n2">
                    <span class="moren"><a href="<?php echo getUrl('Loupan/index','sort',$param,0); ?>" <?php if(empty($search['sort']) || (($search['sort'] instanceof \think\Collection || $search['sort'] instanceof \think\Paginator ) && $search['sort']->isEmpty())): ?>class="selected"<?php endif; ?>>默认排序</a></span>
<span>
<select class="h_select" name="price" id="price-order">
    <option value="0">按价格排序</option>
    <option value="<?php echo getUrl('Loupan/index','sort',$param,1); ?>" <?php if($sort == 1): ?>selected<?php endif; ?>>价格由低到高</option>
    <option value="<?php echo getUrl('Loupan/index','sort',$param,2); ?>" <?php if($sort == 2): ?>selected<?php endif; ?>>价格由高到低</option>
</select>
</span>
                </div>
            </div>

            <div class="house_box ">
                <ul>
                    <?php if(is_array($lists) || $lists instanceof \think\Collection || $lists instanceof \think\Paginator): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;$id=$vo['id']; ?>
                    <li class="overflow_h">
                        <div class="h_box01">
                            <a href="<?php echo url('Loupan/detail',['id'=>$vo['id']]); ?>" title="<?php echo $vo['title']; ?>"><img src="__IMG__/loading.gif" alt="<?php echo $vo['title']; ?>" class="lazy" data-original="<?php echo $vo['img']; ?>" width="217" height="165"></a>
                            <?php if($vo['money'] > 0 and $site['hongbao'] == 1): ?><a href="<?php echo $url; ?>" title="<?php echo $vo['title']; ?>" class="hongbao"></a><?php endif; ?>
                        </div>
                        <div class="h_box02_1"><b><span><a href="<?php echo url('Loupan/detail',['id'=>$vo['id']]); ?>" title="<?php echo $vo['title']; ?>"><?php echo $vo['title']; ?></a></span><?php if(!(empty($vo['youhui']) || (($vo['youhui'] instanceof \think\Collection || $vo['youhui'] instanceof \think\Paginator ) && $vo['youhui']->isEmpty()))): ?><span class="fan">惠</span><?php endif; if($vo['is_group'] == 1): ?><span class="tuan">团</span><?php endif; ?></b></div>
                        <div class="h_box02">
                            <p>主推户型：
                                <?php $obj = model("house_type");$obj->where("house_id=$id and status=1 and is_rec = 1");$obj->field("title,room,jianzhu_area,id");$name = $obj->limit(4)->select();if(is_array( $name ) || $name  instanceof \think\Paginator): $i = 0; $__LIST__ = $name;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?>
                                <a target="_blank" title="<?php echo $data['title']; ?>" href="<?php echo url('Loupan/typeShow',['house_id'=>$vo['id'],'id'=>$data['id']]); ?>"><?php echo $data['room']; ?>室(<?php echo $data['jianzhu_area']; ?>㎡)</a>&nbsp;
                                <?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                                <a target="_blank" href="<?php echo url('Loupan/type',['house_id'=>$vo['id']]); ?>">全部户型</a>
                            </p>
                            <p>楼盘地址：<?php echo $vo['address']; ?></p>
                            <p>开盘时间：<?php echo $vo['open_time']; ?>|交房时间：<?php echo $vo['complate_time']; ?></p>
                            <p class="org">
                                楼盘动态：
                                <?php $obj = model("article");$obj->where("house_id=$id and status=1");$obj->field("id,title");$obj->order("ordid asc,id desc");$name = $obj->limit(1)->select();if(is_array( $name ) || $name  instanceof \think\Paginator): $i = 0; $__LIST__ = $name;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?>
                                <a target="_blank" href="<?php echo url('News/detail',['id'=>$data['id']]); ?>"><?php echo $data['title']; ?></a>
                                <?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                            </p>
                            <div class="h_ts">
                                <?php if(is_array($vo['tags_name']) || $vo['tags_name'] instanceof \think\Collection || $vo['tags_name'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['tags_name'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
                                <i class="h_ts0<?php echo $i; ?>"><?php echo $val; ?></i>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                            <?php if(!(empty($vo['special_youhui']) || (($vo['special_youhui'] instanceof \think\Collection || $vo['special_youhui'] instanceof \think\Paginator ) && $vo['special_youhui']->isEmpty()))): ?><div class="h_dj"></div><?php endif; if(!(empty($vo['youhui']) || (($vo['youhui'] instanceof \think\Collection || $vo['youhui'] instanceof \think\Paginator ) && $vo['youhui']->isEmpty()))): ?>
                            <p class="overflow_h"><span class="fan">惠</span><span class="org"><?php echo $vo['youhui']; ?></span><span class="text02"><a href="javascript:;" class="J_dialog" data-uri="<?php echo url('Ajax/baoming',['id'=>$vo['id'],'type'=>1]); ?>">立即领取</a></span></p>
                            <?php endif; if($vo['is_group'] == 1): ?>
                            <p class="overflow_h"><span class="fan">团</span><span class="org"><?php echo $vo['group_youhui']; ?></span><span class="text02"><a href="javascript:;" class="J_dialog" data-uri="<?php echo url('Ajax/baoming',['id'=>$vo['id'],'type'=>4]); ?>">团购报名</a></span></p>
                            <?php endif; ?>
                        </div>
                        <div class="h_box03">
                            <b><?php echo $vo['average_price']; ?><i>元/平米</i></b>
                            <p><?php echo $vo['sale_phone']['phone']; if(!(empty($vo['sale_phone']['fenghao']) || (($vo['sale_phone']['fenghao'] instanceof \think\Collection || $vo['sale_phone']['fenghao'] instanceof \think\Paginator ) && $vo['sale_phone']['fenghao']->isEmpty()))): ?>转 <?php echo $vo['sale_phone']['fenghao']; endif; ?></p>
                        </div>
                    </li>
                    <?php endforeach; endif; else: echo "暂无数据" ;endif; ?>

                </ul>

                <div class="plastic_bottom_pages"><?php echo $pages; ?></div>
            </div>

        </div>
        <div class="house_r">
            <div>
                <div class="title01">找房神探</div>
                <div class="find_house overflow_h">
                    <div class="f_t"><span>填写需求</span><i></i><span>神探找房</span><i></i><span>推荐房源</span></div>
                    <div class="f_from">
                        <form action="<?php echo url('Ajax/demand'); ?>" method="post" id="info_form">
                            <div class="f_from_b">
                                <p>您的首付金额<i class="org">*</i></p>
                                <p><input class="f_input01" type="text" name="shoufu" id="shoufu"></p>
                            </div>

                            <div class="f_from_b overflow_h">
                                <p>意向户型<i class="org">*</i></p>
                                <p>
                                    <input class="f_input01" type="text" name="huxing" id="huxing">
                                </p>
                            </div>

                            <div class="f_from_b">
                                <p>其他意向</p>
                                <p>
                                    <textarea class="f_input02" name="content" id="textarea2" placeholder="如：意向区域范围、意向楼盘、是否要求地铁沿线，重点学位等。" cols="45" rows="5"></textarea>
                                </p>
                            </div>

                            <div class="f_from_c">
                                <p>为了更好地为您服务，请留下联系方式</p>
                                <p><input type="text" name="mobile" class="f_input03" id="mobile" placeholder="请输入手机号码"></p>
                                <p class="overflow_h">
                                    <input name="code" type="text" class="f_input04" id="code" placeholder="请输入校验码">
                                    <span class="f_yzm"><img src="<?php echo captcha_src(); ?>" id="verfiy" width="98" height="38"></span>
                                </p>
                                <input type="hidden" name="area" value="<?php echo $cityInfo['name']; ?>">
                                <p><a href="javascript:;" class="but06" id="demand-btn">帮我找房</a></p>
                            </div>

                        </form>
                    </div>
                </div>
            </div>

            <div class="m_t_15">
                <div class="title01"><span class="more"><a href="<?php echo url('Loupan/index'); ?>">更多 ></a></span>热门楼盘</div>
                <div class="hot_h"><?php $cityId = $cityInfo['id']; $obj = model("house");$obj->where("status=1 and city=$cityId");$obj->field("id,title,img,average_price,city_name,area_name,open_time");$obj->order("hits desc,id desc");$name = $obj->limit(5)->select();if(is_array( $name ) || $name  instanceof \think\Paginator): $i = 0; $__LIST__ = $name;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <dl class="overflow_h">
                        <dt><a href="<?php echo url('Loupan/detail',['id'=>$vo['id']]); ?>" title="<?php echo $vo['title']; ?>"><img src="__IMG__/loading.gif" class="lazy" data-original="<?php echo $vo['img']; ?>" alt="<?php echo $vo['title']; ?>" width="120" height="90"></a></dt>
                        <dd class="hot_h_t1"><a href="<?php echo url('Loupan/detail',['id'=>$vo['id']]); ?>" title="<?php echo $vo['title']; ?>"><?php echo $vo['title']; ?></a></dd>
                        <dd class="hot_h_t2"><?php echo $vo['average_price']; ?>元/平米</dd>
                        <dd class="hot_h_t3"><?php echo $vo['city_name']; ?><?php echo $vo['area_name']; ?></dd>
                        <dd class="hot_h_t3 nowarp" title="<?php echo $vo['open_time']; ?>">开盘时间：<?php echo $vo['open_time']; ?></dd>
                    </dl>
                    <?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                </div>
                <?php if(is_array($ads) || $ads instanceof \think\Collection || $ads instanceof \think\Paginator): $i = 0; $__LIST__ = $ads;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <div class="h_img"><?php echo $vo; ?></div>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

        </div>




    </div>

</div>
<script src="__PUBLIC__/js/plugins/jquery.ajax.form.js"></script>
<script>
    $(function(){
        $('.J_dialog').bind('click',function(){
            var url = $(this).data('uri');
            layer.open({
                type: 2,
                title: false,
                area: ['500px', '400px'],
                shade: 0,
                closeBtn: 1,
                shadeClose: true,
                content:url
            });
        });
        $('#price-order').bind('change',function(){
           var url = $(this).val();
            if(url!=0){
                window.location.href = url;
            }

        });
        $('#verfiy').bind('click',function(){
            $(this).attr("src","<?php echo captcha_src(); ?>?t="+Math.random());
        });
        $('#demand-btn').bind('click',function(){
            var shoufu = $('#shoufu').val(),huxing = $('#huxing').val(),mobile = $('#mobile').val(),reg = /^1[34578][0-9]{9}$/;
            if(shoufu.length == 0){
                layer.msg('请填写首付金额',{icon:2});
                return false;
            }
            if(huxing.length == 0){
                layer.msg('请填写意向户型',{icon:2});
                return false;
            }
            if(!reg.test(mobile)){
                layer.msg('请填写正确的手机号码',{icon:2});
                return false;
            }
            $('#info_form').submit();
        });
        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                layer.msg(result.msg,{icon:1});
                setTimeout(function(){
                    window.location.href = location.href + '?t='+Math.random();
                },3000);
            } else {
                layer.msg(result.msg,{icon:2});
            }
        }
    });
</script>

<div class="footer clearfix">
    <div class="main">
        <div class="footer_n1">
            <span>服务热线：<?php echo $site['telphone']; ?></span>
            <ul>
                <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 2): if(!(empty($vo['url']) || (($vo['url'] instanceof \think\Collection || $vo['url'] instanceof \think\Paginator ) && $vo['url']->isEmpty()))): $url = $vo['url']; else: if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; endif; ?>
                <li><a target="<?php echo $vo['open_type']; ?>" href="<?php echo $url; ?>"><?php echo $vo['title']; ?></a> </li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="footer_n2 overflow_h">
            <div class="tab02 overflow_h">
                <ul class="idTabs" id="recmond-tab">
                    <li><a href="javascript:;" class="selected"><?php echo $cityInfo['name']; ?>新房推荐</a></li>
                    <li><a href="javascript:;"><?php echo $cityInfo['name']; ?>二手房推荐</a></li>
                    <li><a href="javascript:;">友情链接</a></li>
                </ul>
            </div>
            <div id="recmond-box">
            <div class="f_n3" id="second01">
                <ul>
                    <?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo url('Loupan/index',['area'=>$vo['id']]); ?>" title="<?php echo $vo['name']; ?>"><?php echo $vo['name']; ?>新房</a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="f_n3" id="second03" style="display:none">
                <ul>
                    <?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo url('Second/index',['area'=>$vo['id']]); ?>" title="<?php echo $vo['name']; ?>"><?php echo $vo['name']; ?>二手房</a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="f_n3" id="second04" style="display:none">
                <ul>
                    <?php $obj = model("link");$obj->where("status=1");$obj->field("name,url");$obj->order("ordid asc,id desc");$name = $obj->limit(50)->select();if(is_array( $name ) || $name  instanceof \think\Paginator): $i = 0; $__LIST__ = $name;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo $vo['url']; ?>" title="<?php echo $vo['name']; ?>" target="_blank"><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                </ul>
            </div>
            </div>
        </div>
        <div class="footer_n3 clearfix">
            <div class="footer_n3_1">
                <p>Copyright © <?php echo date("Y"); ?> <?php echo config('url_domain_root'); ?>. All Rights Reserved ICP备案号：<?php echo $site['icp']; ?></p>
                <p>公司名称：<?php echo $site['companyname']; ?></p>
            </div>
            <div class="footer_n3_2" >
                <ul>
                    <li>
                        <span><img src="<?php echo $site['weixin_pic']; ?>" width="90" height="90"></span>
                        <p>关注<?php echo $site['title']; ?>微信</p>
                    </li>
                </ul>
            </div>
        </div>

    </div>
</div>
<?php echo $site['countcode']; ?>
<script src="__PUBLIC__/js/plugins/jquery.lazyload.js"></script>
<script>
    $(function(){
        $("img.lazy").lazyload({
            threshold : 100,
            effect : "fadeIn"
        });
        $('.city-box').bind('click',function(){
            $('#CPM').toggle();
        });
        $('.close_btn').bind('click',function(){
            $('#CPM').hide();
        });
        $("#recmond-tab li").bind('click',function(){
            var index = $(this).index();
            $(this).find('a').addClass('selected').parent().siblings().find('a').removeClass('selected');
            $("#recmond-box").children().eq(index).show().siblings().hide();
        });
    });
</script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
    $(function(){
        $('#search-btn').bind('click',function(){
            var keyword = $('#keyword').val();
            if(keyword.length==0){
                layer.msg('请填写楼盘关键词',{icon:2});
                return false;
            }
            $('#search-form').submit();
        });
    });
</script>
</body>
</html>
